﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Order
{
    class Order
    {
        string id; // 订单号
        double cost;
        public List<OrderDetail> list; //该订单内的具体商品
        Order(string s)
        {
            id = s;
            cost = 0;
            list = new List<OrderDetail>();
        }
        void Add(OrderDetail cur)
        {
            list.Add(cur);
            cost += cur.cost;
        }
    }
}
